package com.erbao.thread.juc;

import java.util.concurrent.Semaphore;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

/**
 * @author CaoBaoYin
 * @since 2022/2/26 18:11
 */
public class ReadWriteLockTest {
    private static ReadWriteLock rwLock = new ReentrantReadWriteLock();

    public static void main(String[] args) {
        Lock readLock = rwLock.readLock();
        Lock writeLock = rwLock.writeLock();

    }

}
